<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./front/iconfont.js"></script>
    <link rel="stylesheet" href="./css/pub.css">
    <link rel="stylesheet" href="./front/iconfont.css">
    <style>
        #main{
            display: flex;
            flex-wrap: wrap;
        }
        .logo,.buttonqq,.buttonwx,.tyxy,.null{
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
        }
        .null{
            width: 100%;
            height: 30vw;
        }
        .null>a{
            position: absolute;
            top: 3vw;
            left: 3vw;
            
        }
        .null>.iconfont{
            font-size: 7vw;
        }
        .logo{
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
        }
        .logo>img{
            width: 30vw;
            height:30vw;
        }
        .logo>p{
            font-size: 5vw;
        }
        .buttonqq{
            width: 50%;
            height: 10vw;
            margin:2vw 25%;
            border-radius: 20px;
            background-color: #000;
            color: #fff;
        }
        .buttonqq>.iconfont{
            color: #fff;
        }
        
        .buttonwx{
            width: 50%;
            height: 10vw;
            margin:2vw 25%;
            border-radius: 20px;
            background-color: #fff;
            color: #000;
            border: 0.3vw solid #000;
        }
        .buttonwx>.iconfont{
            
            color: #000;
        }
        .tyxy{
            margin:2vw;
        }
    </style>
</head>
<body>
    <div id="main">
        <div class="null"> <a href="./b.html"><div class="iconfont icon-fangxiang-xiangyou-copy"></div></a></div>
        <div class="logo">
            <img src="./img/index.jpg" alt="">
            <p>Hi,你来啦</p>
        </div>
        <div class="buttonqq"><div class="iconfont icon-QQ"></div>QQ登录</div>
        <div class="buttonwx"><div class="iconfont icon-weixin"></div>微信登录</div>
        <div class="tyxy"><input type="checkbox"></input>同意<span> 《隐私保护声明》 </span>和<span> 《用户使用协议》 </span></div>
    </div>
    <script>
        var main=document.getElementById("main")
        var buttonqq=main.querySelector(".buttonqq");
        var buttonwx=main.querySelector(".buttonwx");
        var tyxy=main.querySelector(".tyxy>input");
        buttonqq.onclick=()=>{
            console.log(tyxy.checked);
            if (!tyxy.checked) {
                alert('请同意《隐私保护声明》 和《用户使用协议》');
                
            }else{

                window.location.href = "./home_page.html";
            }
        }
        buttonwx.onclick=()=>{
            console.log(tyxy.checked);
            if (!tyxy.checked) {
                alert('请同意《隐私保护声明》 和《用户使用协议》');
                
            }else{
                window.location.href = "./home_page.html";
            }
        }
    </script>
</body>
</html>